//
//  MyAdressCell.m
//  LoveFreshBeen
//
//  Created by 胡不归是大虾 on 2016/10/20.
//  Copyright © 2016年 魏根. All rights reserved.
//

#import "MyAdressCell.h"
#import "MyAdressModel.h"
@interface MyAdressCell( )
@property (weak, nonatomic) IBOutlet UILabel *nameLable;
@property (weak, nonatomic) IBOutlet UILabel *phoneLable;
@property (weak, nonatomic) IBOutlet UILabel *adressLable;



@end
@implementation MyAdressCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setModel:(MyAdressModel *)model{
    _model = model;
    self.nameLable.text = model.accept_name;
    self.phoneLable.text = model.telphone;
    self.adressLable.text = model.address;
}

- (IBAction)didClickEditBtn:(UIButton *)sender {
    if (self.addressEditBlock) {
        self.addressEditBlock(self.model);
    }
}










@end
